﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Clien_AdmissionTrue : System.Web.UI.Page
{
    Service.Service s;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Student"] == null)
        {
            Response.Redirect("LoginStudent.aspx");
        }
        else
        {
            s = new Service.Service();

            string namestudent = Session["Student"].ToString(); ;
            int CodeProfileStudent = s.SP_CodeProfileStudent(namestudent);
            Repeater1.DataSource = s.ListAdmissionTrue(CodeProfileStudent);
            Repeater1.DataBind();
        }

    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        if (Session["Student"] == null)
        {
            Response.Redirect("LoginStudent.aspx");
        }
        else
        {
            Response.Redirect("ListSubject.aspx");
        }

    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        LinkButton btnYes = (LinkButton)sender;
        string NameSubjects = btnYes.CommandName;
        Response.Redirect("Feedback.aspx?NameSubjects=" + NameSubjects);
    }
}